package model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

@Entity
@Table(name = "TacGia")
public class TacGia {
	private int id_TacGia;
	private String tenTacGia;
	private String moTaTacGia;

	public TacGia(String tenTacGia) {
		super();
		this.tenTacGia = tenTacGia;
	}

	public TacGia() {

	}

	@Id
	@GeneratedValue(generator = "TacGia_ID_Gen", strategy = GenerationType.IDENTITY)
	@SequenceGenerator(name = "TacGia_ID_Gen", sequenceName = "TacGia_SEQ_ID")
	@Column(name = "ID_TacGia", unique = true, nullable = false)
	public int getId_TacGia() {
		return id_TacGia;
	}

	public void setId_TacGia(int id_TacGia) {
		this.id_TacGia = id_TacGia;
	}

	@Column(name = "TenTacGia", nullable = false)
	public String getTenTacGia() {
		return tenTacGia;
	}

	public void setTenTacGia(String tenTacGia) {
		this.tenTacGia = tenTacGia;
	}

	@Column(name = "MoTaTacGia")
	public String getMoTaTacGia() {
		return moTaTacGia;
	}

	public void setMoTaTacGia(String moTaTacGia) {
		this.moTaTacGia = moTaTacGia;
	}

}
